function People(name,sex,age){
    this.name = name;
    this.sex = sex;
    this.age = age;
}

People.prototype = {
    sayHello : function(){
        console.log(this.name + this.sex + this.age);
    }
}
// 暴露People函数 用module暴露 就会视People为构造函数 可以用new实例化
module.exports = People;